lcTIN_BndGetPoint Home

This function is used to sequentially retrieve boundary points of a TIN object.

 HANDLE lcTIN_BndGetPoint (
   HANDLE hTIN,
   int iPnt
 );

Parameters
hTIN
  Handle to a TIN object.
iPnt
  Index of boundary point, varies from 0 to LC_PROP_TIN_NBNDPTS-1 .

Return Value

  Handle to the TIN point, or NULL if iPnt index is out of range.


Code sample:
  // get coordinates of all boundary points
  HANDLE hTIN, hPnt;
  int nBndPnts, i;
  double X, Y;
  hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" );
  if (hTIN != 0){
    nBndPnts = lcPropGetInt( hTIN, LC_PROP_TIN_NBNDPTS );
    if (nBndPnts > 0){
      for (i=0; i<nBndPnts; ++i){
        hPnt = lcTIN_BndGetPoint( hTIN, i );
        if (hPnt != 0){
          X = lcPropGetFloat( hPnt, LC_PROP_TINPNT_X );
          Y = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Y );
        }
      }
    }
  }